<?php

if(defined('BLACKBIRD_NEWS_FEED')){
if(BLACKBIRD_NEWS_FEED != ''){
print '
<div class="module">
	<h3>Client News</h3>';
	
require_once LIB.'rss/magpierss-0.72/rss_fetch.inc';

$rss = fetch_rss(BLACKBIRD_NEWS_FEED);

//echo "Site: ", $rss->channel['title'], "<br />";

foreach ($rss->items as $item ) {
	print '<div class="rssitem">';
				
	if(isset($item['link'])){
		print "<h4><a href=\"$item[link]\">$item[title]</a></h4>";
	}else{
		print "<h4>$item[title]</h4>";
	}
	
	print "<p>$item[description]</p></div>";
}	

print '</div>';
}
}